@import '../../styles/global.less';
.k-popconfirm {
  display: inline-block;
  position: relative;
}

.k-popconfirm-content {
  min-width: 200px;
  // max-width: 300px;
  font-size: 12px;
  line-height: 1.5;
  position: absolute;
  z-index: 1001;
  .k-popconfirm-inner {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: @radius;
  }
  .k-popconfirm-inner-content {
    padding: 18px 18px 10px 18px;
    box-sizing: border-box;
    position: relative;
  }
  .k-icon {
    position: absolute;
    font-size: 18px;
    color: @warning;
    top: 19px;
  }
  .k-popconfirm-footer {
    text-align: right;
    padding-top: 10px;
  }
  .k-popconfirm-title {
    padding: 0 0 0 24px;
    font-size: 14px;
  }
  .k-popconfirm-arrow {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 4px solid transparent;
    box-sizing: border-box;
    transform: rotate(45deg);
    background: #fff;
  }
  .k-popconfirm-footer {
    text-align: right;
    padding: 8px 16px 16px;
    .k-btn {
      margin-left: 10px;
    }
  }
  &[k-placement^=top] {
    .k-popconfirm-arrow {
      bottom: 8px;
      box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);
    }
    .k-popconfirm-inner {
      margin-bottom: 12px;
    }
  }
  &[k-placement=top] {
    .k-popconfirm-arrow {
      left: 50%;
      transform: translateX(-50%) rotate(45deg);
    }
  }
  &[k-placement=top-right] {
    .k-popconfirm-arrow {
      right: 10px;
    }
  }
  &[k-placement=top-left] {
    .k-popconfirm-arrow {
      left: 10px;
    }
  }
  &[k-placement^=bottom] {
    .k-popconfirm-arrow {
      top: 8px;
      box-shadow: -3px -3px 7px rgba(0, 0, 0, 0.07);
    }
    .k-popconfirm-inner {
      margin-top: 12px;
    }
  }
  &[k-placement=bottom] {
    .k-popconfirm-arrow {
      left: 50%;
    }
  }
  &[k-placement=bottom-left] {
    .k-popconfirm-arrow {
      left: 10px;
    }
  }
  &[k-placement=bottom-right] {
    .k-popconfirm-arrow {
      right: 10px;
    }
  }
  &[k-placement^=left] {
    .k-popconfirm-arrow {
      right: 8px;
      box-shadow: 3px -3px 7px rgba(0, 0, 0, 0.07);
    }
    .k-popconfirm-inner {
      margin-right: 12px;
    }
  }
  &[k-placement=left] {
    .k-popconfirm-arrow {
      top: 50%;
      margin-top: -6px;
    }
  }
  &[k-placement=left-bottom] {
    .k-popconfirm-arrow {
      bottom: 10px;
    }
  }
  &[k-placement=left-top] {
    .k-popconfirm-arrow {
      top: 10px;
    }
  }
  &[k-placement^=right] {
    .k-popconfirm-arrow {
      left: 8px;
      box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07);
    }
    .k-popconfirm-inner {
      margin-left: 12px;
    }
  }
  &[k-placement=right] {
    .k-popconfirm-arrow {
      top: 50%;
      transform: translateY(-50%) rotate(45deg);
    }
  }
  &[k-placement=right-top] {
    .k-popconfirm-arrow {
      top: 10px;
    }
  }
  &[k-placement=right-bottom] {
    .k-popconfirm-arrow {
      bottom: 10px;
    }
  }
}

@keyframes pop-zoom-in {
  from {
    opacity: 0;
    transform: scale(.8, .8);
  }
  to {
    opacity: 1;
    transform: scale(1, 1);
  }
}

@keyframes pop-zoom-out {
  from {
    opacity: 1;
    transform: scale(1, 1);
  }
  to {
    opacity: 0;
    transform: scale(.8, .8);
  }
}

.k-popconfirm-enter-active {
  // transform-origin: center bottom;
  animation: pop-zoom-in .3s;
}

.k-popconfirm-leave-active {
  // transform-origin: center bottom;
  animation: pop-zoom-out .3s;
}